<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>select选择</title>
    <script src="jquery-2.0.3.js"></script>
    <style>
        * {
            box-sizing: border-box;
        }
        html,body,ul,button {
            margin:0;
            padding:0;
            border:0;
        }
        ul {
            list-style:none;
        }
        .container {
            width:300px;
            margin:0 auto;
        }
        section {
            width:200px;
            height:50px;
            text-align:center;
            line-height:50px;
            position:relative;
            background:#000;
            color:white;
        }
        section ul {
            position:absolute;
            width:200px;
            height:150px;
            border:1px solid #ccc;
            border-top:none;
            top:50px;
            left:0;
            color:#aaa;
            display:none;
        }
        section ul li {
            border-bottom:1px solid #ccc;
        }
        section ul li:last-child {
            border-bottom:none;
        }
        section ul li a {
            display:block;
            text-decoration:none;
            color:#aaa;
        }
        section ul li a:hover {
            text-decoration: underline;
            color:white;
            background:#aaa;
        }
    </style>
</head>
<body>
<div class="container">
    <section>
        请选择您要进行的项目
        <ul>
            <li><a href="javascript:;">六一儿童节棒棒糖</a></li>
            <li><a href="javascript:;">端午节吃粽子</a></li>
            <li><a href="javascript:;">八一建军节唱国歌</a></li>
        </ul>
    </section>

</div>
</body>
</html>
<script>
    $(function(){
        var a=true
        $('.container section').click(function(){
           if(a)
           {
               $('ul').css('display','block')
               a =false
           }
           else{
               $('ul').css('display','none')
               a =true
           }
        })
        $('ul').click(function(){
            $('ul').css('display','none')
            a=true
        })
    })
</script>